import { sheetTypeList } from '@/enums/spuEnum';
import { BasicColumn, FormSchema } from '@/components/Table';

export const tableColumns: BasicColumn[] = [
  { title: '编号', dataIndex: 'id' },
  { title: '长(mm)', dataIndex: 'length' },
  { title: '宽(mm)', dataIndex: 'width' },
  { title: '开纸数', dataIndex: 'paper' },
  { title: '类型', dataIndex: 'type' },
];
export const tableFormSchema: FormSchema[] = [];

export const modalFormSchema: FormSchema[] = [
  {
    required: true,
    field: 'type',
    label: '类型',
    component: 'Select',
    componentProps: {
      options: sheetTypeList,
    },
  },
  {
    required: true,
    field: 'length',
    label: '长(mm)',
    component: 'InputNumber',
    componentProps: {
      min: 0,
    },
  },
  {
    required: true,
    field: 'width',
    label: '宽(mm)',
    component: 'InputNumber',
    componentProps: {
      min: 0,
    },
  },
  {
    required: true,
    field: 'paper',
    label: '开纸数',
    component: 'InputNumber',
    componentProps: {
      min: 0,
    },
  },
];
